<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%    
String path = request.getContextPath();    
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";    
pageContext.setAttribute("basePath",basePath);    
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>formtest</title>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<link href="<%=basePath%>resources/js/bootstrap-3.3.6-dist/css/bootstrap.min.css" rel="stylesheet" media="screen">

<style>
 input {outline:none;width:250px;margin:5px;height:30px;border-radius:10px;opacity:0.5;background:#000;color:white;padding-left:15px;}
</style>
</head>
<body onload="" style="width:100%;padding:0;margin:0;height:100%;">
<spring:hasBindErrors name="user">  
    <c:if test="${errors.fieldErrorCount > 0}">  
  <form action="<%=basePath%>user/addUser.html" method='post' id='formdiv' style="text-align:center;position:relative">
		<input type="type"  name ='type' value="1"/>
        <input  name = 'expiredtime'  value="2017-02-27 12:00:21"/>
        <input  name = 'addtime'  value="2017-02-27 12:00:21"/>
        <input  name = 'birthday'  value="1997-02-27 12:00:21"/>
        <input  name = 'truename'  value="zhenming"/>
        <input  name = 'nickname'  value="昵称"/>
        <input  name = 'phone'  value="18299990000"/>
        <input  name = 'sign'  value="0"/>
        <input  name = 'worknumber'  value="112120"/>
        <input  name = 'username'  value="username"/>
        <input type="submit" value="登录" />
     </c:if>  
</spring:hasBindErrors>  
</form>
		

</body>
</html>

